<?php 


/**
*奥迪类
*/
class Audi extends Car
{
	
	public $name='奥迪';
	public $color='蓝色';

	private $lenght;

	public static $num=1;


	public function __construct()
	{
		// echo '自动执行的方法';
	}

	public  function shenchang()
	{
		self::$num++;
		echo self::$num;
	}

	public function __destruct()
	{
		// echo '死的时候自动执行';
	}


	public function getClassName()
	{
		echo __CLASS__;
	}


	public function getFunctionName()
	{
		echo  __METHOD__; 

		echo "<br>";

		echo __FILE__;	
	}


	public function __isset($data)
	{
		echo $data;
	}

	public function __unset($data)
	{
		echo $data;
	}


	public function __get($data)
	{
		echo $data;
	}


	public function __set($data,$value)
	{
		echo $data."////".$value;
	}

	public function __call($data,$value)
	{
		echo $data."//call//";
		var_dump($value);
	}
}














 ?>